﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ApproveTimesheet.ascx.cs"
    Inherits="Presentation.UserControl.ApproveTimesheet" %>
<table border="0" cellpadding="0" cellspacing="0" id="content-table" width="100%">
    <tr>
        <th rowspan="3" class="sized">
            <img src="/Content/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" />
        </th>
        <th class="topleft">
        </th>
        <td id="tbl-border-top">
            &nbsp;
        </td>
        <th class="topright">
        </th>
        <th rowspan="3" class="sized">
            <img src="/Content/images/shared/side_shadowright.jpg" width="20" height="300" alt="" />
        </th>
    </tr>
    <tr>
        <td id="tbl-border-left">
        </td>
        <td>
            <!--  start content-table-inner -->
            <div id="content-table-inner">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:ListView ID="TimesheetListView" runat="server">
                                <LayoutTemplate>
                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                                        <tr>
                                            <th class="table-header-repeat line-left">
                                                <a>No.</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Contractor</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Title</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Description</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Working Time</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Timesheet Date</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Status</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Reason</a>
                                            </th>
                                        </tr>
                                        <tr id="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <tr class="<%# (Container.DataItemIndex + 1)%2 == 0 ? "row-background" : "" %>">
                                        <td>
                                            <%# Container.DataItemIndex + 1 %>
                                        </td>
                                        <td>
                                            <%# Eval("Contract.Contractor.User.Username")%>
                                        </td>
                                        <td>
                                            <%# Eval("Title")%>
                                        </td>
                                        <td>
                                            <%# Eval("Description")%>
                                        </td>
                                        <td>
                                            <%# Eval("WorkingTime")%>
                                        </td>
                                        <td>
                                            <%# Eval("TimeSheetDate")%>
                                        </td>
                                        <td>
                                            <select class="styledselect_form_2" name='<%# Eval("TimeSheetId")%>'>
                                                <option value="0">Pending</option>
                                                <option value="1">Approve</option>
                                                <option value="2">Reject</option>
                                            </select>
                                        </td>
                                        <td>
                                            <input type="text" class="inp-form-small" />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <EmptyDataTemplate>
                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                                        <tr>
                                            <th class="table-header-repeat line-left">
                                                <a>No.</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Contractor</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Title</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Description</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Working Time</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Timesheet Date</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Status</a>
                                            </th>
                                            <th class="table-header-repeat line-left">
                                                <a>Reason</a>
                                            </th>
                                        </tr>
                                        <tr>
                                            <td colspan="8">Nothing to approve</td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:ListView>
                        </td>
                    </tr>
                </table>
                <asp:Button ID="SaveButton" runat="server" CssClass="form-save" Text="" />
                <div class="clear">
                </div>
            </div>
            <!--  end content-table-inner  -->
        </td>
        <td id="tbl-border-right">
        </td>
    </tr>
    <tr>
        <th class="sized bottomleft">
        </th>
        <td id="tbl-border-bottom">
            &nbsp;
        </td>
        <th class="sized bottomright">
        </th>
    </tr>
</table>
<div class="clear">
    &nbsp;</div>
